//枚举
enum LoginOptStatus {
	LoginSuccess = 0,
	LogoutSuccess = 1,
	CaptchaError = 2,
	AccountOrPasswordError = 3
}
enum LoginStatus {
	LoginSuccess = 1,
	LoginFail = 0
}

enum OptType {
	NORMAL = 0
}
enum Gender {
	BOY = 0,
	GIRL = 1
}
export function getLoginOptMsg(code: LoginOptStatus): string {
	switch (code) {
		case LoginOptStatus.LoginSuccess:
			return '登录成功'
		case LoginOptStatus.LogoutSuccess:
			return '退出成功'
		case LoginOptStatus.CaptchaError:
			return '验证码错误'
		case LoginOptStatus.AccountOrPasswordError:
			return '账号密码错误'
		default:
			return '未知状态码'
	}
}

export function getLoginMsg(code: LoginStatus): string {
	switch (code) {
		case LoginStatus.LoginSuccess:
			return '成功'
		case LoginStatus.LoginFail:
			return '失败'
	}
}
export function getGenderMsg(code: Gender): string {
	switch (code) {
		case Gender.BOY:
			return '男'
		case Gender.GIRL:
			return '女'
	}
}
